package com.ruoyi.system.service;

import com.ruoyi.system.domain.Http.HttpEntity;
import com.ruoyi.system.domain.Http.ResponseData;

/**
 *
 */
public interface HttpMethodService {

    /**
     * get请求
     * @param httpEntity
     * @return
     */
    public ResponseData invokeGet(HttpEntity httpEntity);

    /**
     * post请求
     * @param httpEntity
     * @return ResponseData
     */
    public ResponseData invokePost(HttpEntity httpEntity);

    /**
     * delete请求
     * @param httpEntity
     * @return ResponseData
     */
    public ResponseData invokeDelete(HttpEntity httpEntity);

    /**
     * put请求
     * @param httpEntity
     * @return ResponseData
     */
    public ResponseData invokePut(HttpEntity httpEntity);

    /**
     * 根据前端的字段判断调用的方法
     * @param httpEntity
     * @return ResponseData
     */
    public ResponseData chooseMethod(HttpEntity httpEntity);

    /**
     * json数据校验方法
     */
    public boolean isJson(String json);
}
